/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package net.dntuan.jaxbdemo.model;

import java.util.Date;
import java.util.List;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

import net.dntuan.jaxbdemo.adapter.HttpDateAdapter;

/**
 * 
 * @author tuandn
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlRootElement
public class Channel {

	private String title;
	private String link;
	private String description;
	@XmlJavaTypeAdapter(HttpDateAdapter.class)
	private Date lastBuildDate;
	private List<Item> item;

	public String getDescription() {
		return description;
	}

	public List<Item> getItem() {
		return item;
	}

	public Date getLastBuildDate() {
		return lastBuildDate;
	}

	public String getLink() {
		return link;
	}

	public String getTitle() {
		return title;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public void setItem(List<Item> item) {
		this.item = item;
	}

	public void setLastBuildDate(Date lastBuildDate) {
		this.lastBuildDate = lastBuildDate;
	}

	public void setLink(String link) {
		this.link = link;
	}

	public void setTitle(String title) {
		this.title = title;
	}
}
